package com.cnbbx.cnbbx_web.controller;

import com.alibaba.druid.stat.DruidStatManagerFacade;
import com.cnbbx.cnbbx_web.utils.ControllerUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DruidStatController extends ControllerUtil {
    @GetMapping("/druid/stat")
    public Object druidStat() {
        return DruidStatManagerFacade.getInstance().getDataSourceStatDataList();
    }
}
